package cs4280.ass2.entity;

import java.util.Date;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

public class Movie extends AuditableEntity {
	private static final long serialVersionUID = 1L;
	private String name;
	private String description;
	private String director;
	private String cast;
	private int duration;
	private String category; // I,II,IIB,III
	private String language;
	private String trailerUrl;
	private String imageUrl;
	private Date startDate;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDirector() {
		return director;
	}

	public void setDirector(String director) {
		this.director = director;
	}

	public String getCast() {
		return cast;
	}

	public void setCast(String cast) {
		this.cast = cast;
	}

	public int getDuration() {
		return duration;
	}

	public void setDuration(int duration) {
		this.duration = duration;
	}

	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

	public String getLanguage() {
		return language;
	}

	public void setLanguage(String language) {
		this.language = language;
	}

	public String getTrailerUrl() {
		return trailerUrl;
	}

	public void setTrailerUrl(String trailerUrl) {
		this.trailerUrl = trailerUrl;
	}

	public String getImageUrl() {
		return imageUrl;
	}

	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getDescription() {
		return description;
	}

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	@Override
	public String toString() {
		ToStringBuilder builder = new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE);
		builder.append("id", this.getId());
		builder.append("name", this.getName());
		builder.append("description", this.getDescription());
		builder.append("director", this.getDirector());
		builder.append("cast", this.getCast());
		builder.append("duration", this.getDuration());
		builder.append("category", this.getCategory());
		builder.append("language", this.getLanguage());
		builder.append("trailer_url", this.getTrailerUrl());
		builder.append("image_url", this.getImageUrl());
		builder.append("createDate", this.getCreateDate());
		builder.append("createUser", this.getCreateUser());
		builder.append("modifyDate", this.getModifyDate());
		builder.append("modifyUser", this.getModifyUser());
		builder.append("startDate", this.getStartDate());
		return builder.toString();
	}

}
